package com.pse.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pse.mapper.DatesMapper;
import com.pse.model.Dates;
import com.pse.service.DatesService;

@Service
@Transactional
public class DatesServiceImpl implements DatesService{

	@Resource
	private DatesMapper dmapper;
	@Override
	public boolean insert(Dates date) {
		if(dmapper.insert(date)==true)return true;
		return false;
		// TODO Auto-generated method stub
		
	}

	@Override
	public int queryavr(int eid) {
		return dmapper.queryavr(eid);
		// TODO Auto-generated method stub
		
	}

}
